package com.yq.service.impl;

import com.yq.core.entity.SysCorRolePowerEntity;
import com.yq.core.entity.SysCorUserRoleEntity;
import com.yq.core.service.SysCorRolePowerService;
import com.yq.core.service.SysCorUserRoleService;
import com.yq.service.annotation.AzerothAutoService;
import com.yq.service.dao.BaseMapper;
import com.yq.service.dao.SysCorRolePowerMapper;
import com.yq.service.dao.SysCorUserRoleMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;


/**
 * 信  息: [yinquan] [2017-05-04] [1.0]
 * 描  述: Service 实现
 */
@AzerothAutoService("sysCorUserRoleService")
public class SysCorUserRoleServiceImpl extends BaseServiceImpl<SysCorUserRoleEntity, String> implements SysCorUserRoleService {

    private static Logger logger = LoggerFactory.getLogger(SysCorUserRoleServiceImpl.class);

    @Autowired
    private SysCorUserRoleMapper sysCorUserRoleMapper;

    public BaseMapper<SysCorUserRoleEntity, String> getBaseMapper() {
        return sysCorUserRoleMapper;
    }

    /** 删除管理员授权 **/
    public void deleteAccredit(Map<String, Object> parameter) {
        sysCorUserRoleMapper.deleteAccredit(parameter);
    }
}